﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Department/Master.Master" AutoEventWireup="true" CodeBehind="ManageDepartmentDetails.aspx.cs" Inherits="logicunivesityinventorystore.Change" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {
            width: 166px;
        }
        .style6
        {
            width: 220px;
        }
        .style7
        {
            width: 189px;
        }
    </style>
</asp:Content>

<asp:Content ID="Content6" runat="server" contentplaceholderid="ContentPlaceHolder2">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    
        <h1>Change Department Details</h1>
   
        <table>
            <tr>
                <td class="style2">
                    <label>Contact Name:</label>
                </td>
                <td class="style7">
                    <asp:TextBox ID="txtContactName" runat="server" Height="20px" 
                        ViewStateMode="Enabled"></asp:TextBox>
                    
                    <asp:FilteredTextBoxExtender ID="txtContactName_FilteredTextBoxExtender" 
                       FilterType="LowercaseLetters, UppercaseLetters,Custom" ValidChars=" ." runat="server" Enabled="True" TargetControlID="txtContactName">
                    </asp:FilteredTextBoxExtender>
                    
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtContactName" ErrorMessage="Contact Name Required"></asp:RequiredFieldValidator>
                </td>
           </tr>
              <tr>
                <td class="style2">
                    <br />
                </td>
           
              </tr>
            <tr>
                <td class="style2">
                     <label>Dept's Contact No:</label>
                </td>
                <td class="style7">
                     <asp:TextBox ID="txtContactNo" runat="server" Enabled="False"></asp:TextBox>
                </td>
            </tr>
             <tr>
                <td class="style2">
                    <br />
                </td>
                </tr>
              <tr>
                <td class="style2">
                     <label>Dept's Fax No:</label>
                </td>
                <td class="style7">
                     <asp:TextBox ID="txtFax" runat="server" Enabled="False"></asp:TextBox>
                </td>
                </tr>
                 <tr>
                <td class="style2">
                    <br />
                </td>
                </tr>
            
              <tr>
                <td class="style2">
                    <label>Representative Name:</label>
                </td>
                <td class="style7">
                    
                    <asp:DropDownList ID="ddlRepName" runat="server">
                    </asp:DropDownList>
                    
                </td>
                <td>
                    
                    <label> Current Representative:</label> <asp:Label ID="lblRep" runat="server" Text="Label"></asp:Label>
                </td>
                
                
            </tr>
             <tr>
                <td class="style2">
                    <br />
                </td>
                </tr>
              <tr>
                <td class="style2">
                     <label>Collection Point:</label>
                </td>
                <td class="style7">
                
                    <asp:DropDownList ID="ddlCollection" runat="server" AutoPostBack="True" 
                        DataSourceID="ObjectDataSource1" DataTextField="Location" 
                        DataValueField="CollectionPointID" 
                        onselectedindexchanged="ddlCollection_SelectedIndexChanged">
                    </asp:DropDownList>
                
                    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                        SelectMethod="FindAll" TypeName="BusinessLogicLayer.CollectionPointFacade">
                    </asp:ObjectDataSource>
                
                </td>
                <td>
                    <label> Collection Point:</label> <asp:Label ID="lblCollection" runat="server"></asp:Label>
                </td>
                      
            </tr>
            <tr>
                  <td class="style2">
                        <br />
                    </td>
            </tr>
             <tr>
                    <td class="style2">
                       <label> Collection Time: </label>
                    </td>
                    <td class="style7">
                        <asp:Label ID="lblCollectionTime" runat="server"></asp:Label>
                    </td>
                </tr>
             <tr>
                <td class="style2">
                    <br />
                </td>
                </tr>
                <tr>
                <td class="style2">
                    &nbsp;
                </td>
                   
                    <td class="style7">
                        <asp:Button ID="btnSave" runat="server" Text="Save" Height="25px" Width="55px" 
                            onclick="btnSave_Click" CssClass="ButtonStyle" />
                        <asp:ConfirmButtonExtender ID="btnSave_ConfirmButtonExtender" runat="server" 
                            ConfirmText="Are you sure you want to save the changes?" Enabled="True" TargetControlID="btnSave">
                        </asp:ConfirmButtonExtender>
                        
                        
                    </td>
            
                </tr>
               
        </table>
        </ContentTemplate>
    </asp:UpdatePanel>
            </asp:Content>

<asp:Content ID="Content7" runat="server" 
    contentplaceholderid="ContentPlaceHolder3">
    
                </asp:Content>
<asp:Content ID="Content8" runat="server" 
    contentplaceholderid="ContentPlaceHolder4">

                </asp:Content>


